<template>
  <div>
    主页
    <el-button
      type="warning"
      icon="el-icon-switch-button"
      circle
      @click="logout"
    >
    </el-button>
  </div>
</template>

<script>
export default {
  methods: {
    logout () {
      console.log('退出登录')
      this.$store.state.userInfo.token = ''
      this.$router.push('/login')
    }
  }
}
</script>

<style></style>
